﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using ASPNETMVCApplication.ActionServiceReference;

namespace ASPNETMVCApplication.Repositories
{
    /// <summary>
    /// Supplier Repository interface.
    /// Derives from standard IRepository. Adds one supplier specific member.
    /// </summary>
    public interface ISupplierRepository : IRepository<Supplier>
    {        
        List<Supplier> Search(int supplierID);
        List<Supplier> Login(string userName, string passWord);
        Supplier Get(int supplierID);
        int GetCount(Criterion criterion = null);        
        void Insert(Supplier supplier);
        void Update(Supplier supplier);
        void Delete(int suppliertId);
    }
}